package cn.liulingfengyu.oauthclient.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class Test {
    @GetMapping("/success/callback")
    public String success(String  code){
        System.err.println(code);
        return "success";
    }
    @GetMapping("/error/callback")
    public String err(HttpServletRequest request){
        return  "err";
    }
}
